home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
appsrcs.zip
/
MORSETUP.ZIP
/
BORDER.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-10
|
842b
|
29 lines
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include "morsetup.h"
/*-------------------------------------------------------------------------*/
VOID InnerBorder(HDC hDC, RECT rect)
{
RECT rcWhite, rcGray;
rcWhite = rcGray = rect;
// draw gray upper border part
rcGray.right = rcGray.left+1;
FillRect(hDC, &rcGray, GetStockBrush(GRAY_BRUSH));
rcGray.right = rect.right;
rcGray.bottom = rcGray.top+1;
FillRect(hDC, &rcGray, GetStockBrush(GRAY_BRUSH));
// draw white lower border part
rcWhite.left++;
rcWhite.top = rcWhite.bottom-1;
FillRect(hDC, &rcWhite, GetStockBrush(WHITE_BRUSH));
rcWhite.left = rcWhite.right-1;
rcWhite.top = rect.top;
rcWhite.bottom = rect.bottom;
FillRect(hDC, &rcWhite, GetStockBrush(WHITE_BRUSH));
}